package com.ruoyi.a2.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.a2.mapper.A2TmpAndIaMapper;
import com.ruoyi.a2.domain.A2TmpAndIa;
import com.ruoyi.a2.service.IA2TmpAndIaService;

/**
 * 目标动向预测和意图研判Service业务层处理
 *
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class A2TmpAndIaServiceImpl extends ServiceImpl<A2TmpAndIaMapper, A2TmpAndIa> implements IA2TmpAndIaService
{
    @Autowired
    private A2TmpAndIaMapper a2TmpAndIaMapper;

    /**
     * 查询目标动向预测和意图研判
     *
     * @param id 目标动向预测和意图研判主键
     * @return 目标动向预测和意图研判
     */
    @Override
    public A2TmpAndIa selectA2TmpAndIaById(Long id)
    {
        return a2TmpAndIaMapper.selectA2TmpAndIaById(id);
    }

    /**
     * 查询目标动向预测和意图研判列表
     *
     * @param a2TmpAndIa 目标动向预测和意图研判
     * @return 目标动向预测和意图研判
     */
    @Override
    public List<A2TmpAndIa> selectA2TmpAndIaList(A2TmpAndIa a2TmpAndIa)
    {
        return a2TmpAndIaMapper.selectA2TmpAndIaList(a2TmpAndIa);
    }

    /**
     * 新增目标动向预测和意图研判
     *
     * @param a2TmpAndIa 目标动向预测和意图研判
     * @return 结果
     */
    @Override
    public int insertA2TmpAndIa(A2TmpAndIa a2TmpAndIa)
    {
        a2TmpAndIa.setCreateTime(DateUtils.getNowDate());
        return a2TmpAndIaMapper.insertA2TmpAndIa(a2TmpAndIa);
    }

    /**
     * 修改目标动向预测和意图研判
     *
     * @param a2TmpAndIa 目标动向预测和意图研判
     * @return 结果
     */
    @Override
    public int updateA2TmpAndIa(A2TmpAndIa a2TmpAndIa)
    {
        a2TmpAndIa.setUpdateTime(DateUtils.getNowDate());
        return a2TmpAndIaMapper.updateA2TmpAndIa(a2TmpAndIa);
    }

    /**
     * 批量删除目标动向预测和意图研判
     *
     * @param ids 需要删除的目标动向预测和意图研判主键
     * @return 结果
     */
    @Override
    public int deleteA2TmpAndIaByIds(Long[] ids)
    {
        return a2TmpAndIaMapper.deleteA2TmpAndIaByIds(ids);
    }

    /**
     * 删除目标动向预测和意图研判信息
     *
     * @param id 目标动向预测和意图研判主键
     * @return 结果
     */
    @Override
    public int deleteA2TmpAndIaById(Long id)
    {
        return a2TmpAndIaMapper.deleteA2TmpAndIaById(id);
    }
}
